package model.roomManagement.Interface;

import java.io.File;
import java.util.ArrayList;

public interface IDBC {
	public boolean userCheck(int userId, String password);
	public void start();
	public boolean addRtoU(int userId, int roomId);
	public boolean joinCheck(int roomId,String password);
	public int creatRoom(int userId, String subject, String password);
	public boolean addUtoR(int roomId, int userId);
	public boolean deleteUofR(int roomId, int userId);
	public boolean deleteRofU(int userId, int roomId);
	public ArrayList getRLbyUserId(int userId)throws Exception;
	
	public boolean addFile(File file, int fileRoom, int ownerId);
	
	public File getFile(String fileName, int fileRoom);
	
	public boolean deleteFile(String fileName, int fileRoom, int id);
	public boolean deleteRoom(int userId, int roomId);
	public ArrayList getULbyRoomId(int roomId)throws Exception;
	public IUser getUserInfoByUId(int id)throws Exception;
	public String getRoomInfoByRId(int roomId)throws Exception;
	public ArrayList<String> getFileNameList(int roomId)throws Exception;
	public boolean changePassWord(int userId, String oldPassword,
			String newPassword);
	
	public boolean saveRoom(Object room, int roomId);
	public Object getRoom(int roomId);

	
}
